package com.hermeneute.fsa.parser;

import antlr.CommonAST;
import antlr.collections.AST;



public class testParserTree {
	public static void main(String[] args) throws Exception {

		//FSTParserTreeTK p = new FSTParserTreeTK();
		FSTParserTreeTK p = new FSTParserTreeTK("<a> = \"abc\" ^(@* \"abc\" @*);<a> = \"abc\" ^(@* \"abc\" @*);");
		TokenAST t = (TokenAST)p.getParser().getAST();
        // Print the resulting tree out in LISP notation
        System.out.println(t.toStringList());
        System.out.println(t);
        System.out.println(t.getToken().getLine());
        System.out.println(t.getToken().getColumn());
        System.out.println(t.getNextSibling());
        System.out.println(((TokenAST)t.getNextSibling()).getToken().getLine());
        System.out.println(((TokenAST)t.getNextSibling()).getToken().getColumn());
        System.out.println(t.getNextSibling().getNextSibling());
			
	}    
	
}    

